fix(Integrations): Let HubSpot handle company creation and association#7138
fix(Integrations): Let HubSpot handle company creation and association#7138
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
There was a problem hiding this comment.
Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.
Once credits are available, reopen this pull request to trigger a review.
Docker builds report
|
…ith org names When a user signs up, the HubSpot integration overwrites the company name with whatever the user typed as their Flagsmith org name. This leads to incorrect names replacing real company names that HubSpot already enriched from the email domain. Now only sets the company name if HubSpot doesn't already have one, using the email domain as a fallback instead of the org name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6364631 to
123b18d
Compare
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
|
|
I've requested @Zaimwa9's review here as he has the most contextual knowledge of this area of code. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7138 +/- ##
==========================================
- Coverage 98.34% 98.32% -0.03%
==========================================
Files 1336 1336
Lines 50129 50120 -9
==========================================
- Hits 49299 49278 -21
- Misses 830 842 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
507b504 to
f265e20
Compare
The HubSpot lead tracking integration was creating and updating companies from Flagsmith org data, overwriting enriched company names with user-entered org names. HubSpot already handles company creation and contact association automatically from email domains. Simplify create_lead to only create the contact. Remove domain filtering from should_track since HubSpot handles that natively. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26c5add to
177bffe
Compare
The HubSpot lead tracking integration was creating and updating companies from Flagsmith org data, overwriting enriched company names with user-entered org names. HubSpot already handles company creation and contact association automatically from email domains.
Changes
create_leadto only create the contact - HubSpot handles company creation and associationshould_trackto just check if the feature is enabled - HubSpot handles domain filteringReview effort: 1/5
🤖 Generated with Claude Code